package cn.rxyb.desgin.mediator;

/**
 * @author YJH
 * @version 1.0
 * @description 抽象的中介者模式
 * @date 2020/7/3 14:57
 */
public abstract class AbstractMediator {


    /**
     * 注册一个用户
     *
     * @param colleague
     */
    public abstract void register(AbstractColleague colleague);

    /**
     * 转发
     *
     * @param colleague
     */
    public abstract void relay(AbstractColleague colleague);
}
